﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MyMainSite.Models;

namespace MyMainSite.Repositories
{
    public interface IProjectRepository : IRepository
    {
        #region Methods

        int GetBlogCountByProjectId(int projectId);

        int GetBlogCountByProjectIdAndDate(int projectId, DateTime date);

		List<Project> GetProjects();

		Project GetProjectById(int projectId);

		Project GetProjectByName(string name);

		bool IsProjectNameUnique(string name);

		bool IsProjectFriendlyUrlUnique(string friendlyUrl);

		int AddProject(string name, string description, string friendlyUrl, string sourceCodeUrl,
			string textBugzXUrl, string textAndroidMarketUrl, byte[] imageData = null);

        #endregion
    }
}